import Vue from 'vue'
import Vuex from 'vuex'
import user from './user'
import router from './router'
import goods from './goods'
Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    active:0,
  },
  getters: {
  },
  mutations: {
    setactive(state, value) {
      state.active=value;
      // console.log('active中心到数据已经发生改变:',state.active,value);
    },
  },
  actions: {
  },
  modules: {
    user,
    router,
    goods,
  }
})
